import org.junit.Assert;
import org.junit.Test;

public class TestConstraintFailureException {

	@Test
	public void testConstructor() throws Exception
	{
		Transaction t = new Transaction(Transaction.Code.CREATE, "Sample Created", DVD.Status.RENTAL, 1, 0);
				
		ConstraintFailureException ex = new ConstraintFailureException ("Constructor Test", new Exception (), t);
	
		Assert.assertEquals(t, ex.getTransaction());
	}
	
}
